﻿using System.ComponentModel.DataAnnotations.Schema;

namespace Company.Database.Entities
{
    [Table(nameof(UserEntity))]
    public class UserEntity : EntityBase
    {
        private string userName = string.Empty;
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName
        {
            get { return userName; }
            set { SetProperty(ref userName, value); }
        }

        private string password = string.Empty;
        /// <summary>
        /// 密码
        /// </summary>
        public string Password
        {
            get { return password; }
            set { SetProperty(ref password, value); }
        }

        private int role = 0;
        /// <summary>
        /// 角色，1>0
        /// </summary>
        public int Role
        {
            get { return role; }
            set
            {
                SetProperty(ref role, value);
            }
        }
    }
}
